package com.chuantou.yuba.api.to;

import com.chuantou.yuba.util.Constants;
import com.google.gson.annotations.SerializedName;

public class NewsDetailDataTO extends BaseTO {
	@SerializedName("data")
	private NewsDetailTO data;

	public NewsDetailTO getData() {
		return data;
	}

	public void setData(NewsDetailTO data) {
		this.data = data;
	}

	@Override
	public int getCurrentPage() {
		return data == null ? 1 : data.getCurrentPage();
	}
	
	@Override
	public boolean hasNextPage() {
		return data != null && data.getComments() != null && data.getComments().size() >= Constants.DEFAULT_PAGE_SIZE;
	}

}
